package com.yanu.t2s.service.Impl;

import com.yanu.t2s.entity.Pifa;
import com.yanu.t2s.mapper.PifaMapper;
import com.yanu.t2s.service.PifaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PifaServiceImpl implements PifaService {
    @Autowired
    PifaMapper pifaMapper;

    @Override
    public Pifa findByIdPifa(int id_pifa) {
        return pifaMapper.findByIdPifa(id_pifa);
    }

    @Override
    public List<Pifa> findAllPifa() {
        return pifaMapper.findAllPifa();
    }
}
